//
//  GPSWillStartView.swift
//  DaRings
//
//  Created by 尹琼 on 2022/12/9.
//

import UIKit
import MYModule

open class GPSWillStartView: View {
    
    public let goalSetBtn = Button()
    public let startBtn = Button()
    
    open override func makeUI() {
       super.makeUI()
        
        self.addSubview(goalSetBtn)
        self.addSubview(startBtn)
       
       goalSetBtn.layer.cornerRadius = 22
       goalSetBtn.layer.masksToBounds = true
       goalSetBtn.layer.borderColor = UIColor.assist_D0D0D0.cgColor
       goalSetBtn.layer.borderWidth = 1
       goalSetBtn.titleLabel?.font = Fonts.systemFont(ofSize: 18)
       goalSetBtn.setTitleColor(.lightGray, for: .normal)
       goalSetBtn.setTitle("gps_training_goal_setting".language, for: .normal)
       
       setShadow(view: startBtn,cornerRadius: 22)
       startBtn.titleLabel?.font = Fonts.systemFont(ofSize: 18)
       startBtn.setTitleColor(.white, for: .normal)
       startBtn.setTitle("gps_training_start".language, for: .normal)
       
       
       goalSetBtn.snp.makeConstraints { make in
           make.height.equalTo(44)
           make.centerY.equalToSuperview()
           make.left.equalToSuperview().offset(30)
       }
       
       startBtn.snp.makeConstraints { make in
           make.height.equalTo(44)
           make.centerY.equalToSuperview()
           make.left.equalTo(goalSetBtn.snp.right).offset(20)
           make.right.equalToSuperview().offset(-30)
           make.width.equalTo(goalSetBtn.snp.width)
       }
       
       
   }

    

}
